import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryDrillReportList = async (json) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/queryDrillReportList", json);
  return data;
};



export const updateDrillReport = async (json) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/updateDrillReport", json);
  return data;
};


export const addDrillReport = async (json) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/addDrillReport", json);
  return data;
};



export const delDrillReport = async (json) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/delDrillReport", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}


export const uploadFile = async (formData) => {
  let { data } = await axios.post(API_URL + "rDrillReportApi/uploadFile", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}